package TestList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-10-10
 * Time: 11:22
 */
public class Teacher {
    private String name;
    private String course;
    private Character sex;

    public Teacher() {
    }

    public Teacher(String name, String course, Character sex) {
        this.name = name;
        this.course = course;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", course='" + course + '\'' +
                ", sex=" + sex +
                '}';
    }
}
